function plot_fig1(max1,max2)
m1 = size(max1,2);
m2 = size(max2,2);
figure;
subplot(1,2,1)
plot(0:m1-1,max1,'-','LineWidth',2);xlim([0 30]);ylim([0 50]);
title('(a)');
subplot(1,2,2)
plot(0:m2-1,max2,'-','LineWidth',2);xlim([0 30]);ylim([0 50]);
title('(b)');